package expression.v1.dao;

import java.util.List;

public interface IBaseDao<T> {
	int add(String sql,T t);
	int addBatch(String sql,List<T> list);
	int update(String sql,T t);
	int updateBatch(String sql,List<T> list);
	int delete(String sql,T t);
	int deleteBatch(String sql,List<T> list);
	T queryById(String sql,String id);
	T queryByName(String sql,String name);
	List<T> queryLike(String sql,String like);
	int countAll();
	int countByConditions(Object...args);
}
